// web/src/app/(protected)/client/page.tsx
'use client';
import React from 'react';
import UserInfo from "@/components/user-info";
import {useCurrentUser} from "@/hooks/use-current-user";

const Page = () => {
    const user = useCurrentUser()
    if (!user) return <div>loading...</div>

    return (
        <UserInfo
            label={`Client component`}
            user={user}
        />
    );
};

export default Page;